const registerRule = exports.userRegister = {
    // username: {type: 'string', format: /^[\u4e00-\u9fa5]{2,}|[a-z0-9\-_]{4,}$/, required: true},
    email: {type: 'email', required: true},
    phone: {type: 'string', format: /^1\d{10}$/, required: true},
    password: {type: 'password', required: true},
};

exports.userLogin = {
    // username: registerRule.username,
    password: registerRule.password,
};

exports.userEdit = Object.assign({}, registerRule, {password: {type: 'password', required: false}});